# https://kb.vmware.com/s/article/1036609 # https://www.openinfrastructure.co/news/esxi-single-usb-boot-plus-datastore/ # https://www.virten.net/2016/11/usb-devices-as-vmfs-datastore-in-vsphere-esxi-6-5/ [root@esxi:~] partedUtil Usage: Get Partitions : get <diskName> Set Partitions : set <diskName> ["partNum startSector endSector type attr"]* Delete Partition : delete <diskName> <partNum> Resize Partition : resize <diskName> <partNum> <start> <end> Get Partitions : getptbl <diskName> Set Partitions : setptbl <diskName> <label> ["partNum startSector endSector type/guid attr"]* Fix Partition Table : fix <diskName> Create New Label (all existing data will be lost): mklabel <diskName> <label> Show commonly used partition type guids : showGuids Get usable first and last sectors : getUsableSectors <diskName> Fix GPT Table interactively : fixGpt <diskName> Show Partition Information : partinfo <diskName> <partNum> Add Partition Information : add <diskName> <label> ["partNum startSector endSector type/guid attr"] [root@esxi:~] partedUtil showGuids Partition Type GUID vmfs AA31E02A400F11DB9590000C2911D1B8 vmkDiagnostic 9D27538040AD11DBBF97000C2911D1B8 vsan 381CFCCC728811E092EE000C2911D0B2 virsto 77719A0CA4A011E3A47E000C29745A24 VMware Reserved 9198EFFC31C011DB8F78000C2911D1B8 Basic Data EBD0A0A2B9E5443387C068B6B72699C7 Linux Swap 0657FD6DA4AB43C484E50933C84B4F4F Linux Lvm E6D6D379F50744C2A23C238F2A3DF928 Linux Raid A19D880F05FC4D3BA006743F0F84911E Efi System C12A7328F81F11D2BA4B00A0C93EC93B Microsoft Reserved E3C9E3160B5C4DB8817DF92DF00215AE Unused Entry 00000000000000000000000000000000 [root@esxi:~] partedUtil get /vmfs/devices/disks/mpx.vmhba0:C0:T0:L0 1958 255 63 31457280 1 64 8191 0 128 5 8224 520191 0 0 6 520224 1032191 0 0 7 1032224 1257471 0 0 8 1257504 1843199 0 0 9 1843200 7086079 0 0 2 7086080 15472639 0 0 10 15472640 19666944 0 0 3 19668992 31455231 0 0 [root@esxi:~] ls /vmfs/devices/disks/ mpx.vmhba0:C0:T0:L0 mpx.vmhba0:C0:T0:L0:5 vml.0000000000766d686261303a303a30 vml.0000000000766d686261303a303a30:5 mpx.vmhba0:C0:T0:L0:1 mpx.vmhba0:C0:T0:L0:6 vml.0000000000766d686261303a303a30:1 vml.0000000000766d686261303a303a30:6 mpx.vmhba0:C0:T0:L0:10 mpx.vmhba0:C0:T0:L0:7 vml.0000000000766d686261303a303a30:10 vml.0000000000766d686261303a303a30:7 mpx.vmhba0:C0:T0:L0:2 mpx.vmhba0:C0:T0:L0:8 vml.0000000000766d686261303a303a30:2 vml.0000000000766d686261303a303a30:8 mpx.vmhba0:C0:T0:L0:3 mpx.vmhba0:C0:T0:L0:9 vml.0000000000766d686261303a303a30:3 vml.0000000000766d686261303a303a30:9 [root@esxi:~] partedUtil delete "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0" 3 [root@esxi:~] partedUtil get "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0" 1958 255 63 31457280 1 64 8191 0 128 5 8224 520191 0 0 6 520224 1032191 0 0 7 1032224 1257471 0 0 8 1257504 1843199 0 0 9 1843200 7086079 0 0 2 7086080 15472639 0 0 10 15472640 19666944 0 0 [root@esxi:~] partedUtil add "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0" gpt "3 19668992 31455231 AA31E02A400F11DB9590000C2911D1B8 0" gpt 1958 255 63 31457280 1 64 8191 C12A7328F81F11D2BA4B00A0C93EC93B 128 5 8224 520191 EBD0A0A2B9E5443387C068B6B72699C7 0 6 520224 1032191 EBD0A0A2B9E5443387C068B6B72699C7 0 7 1032224 1257471 9D27538040AD11DBBF97000C2911D1B8 0 8 1257504 1843199 EBD0A0A2B9E5443387C068B6B72699C7 0 9 1843200 7086079 9D27538040AD11DBBF97000C2911D1B8 0 2 7086080 15472639 EBD0A0A2B9E5443387C068B6B72699C7 0 10 15472640 19666944 AA31E02A400F11DB9590000C2911D1B8 0 3 19668992 31455231 AA31E02A400F11DB9590000C2911D1B8 0 [root@esxi:~] vmkfstools -C vmfs6 -S USB /vmfs/devices/disks/mpx.vmhba0:C0:T0:L0:3 create fs deviceName:'/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0:3', fsShortName:'vmfs6', fsName:'USB' deviceFullPath:/dev/disks/mpx.vmhba0:C0:T0:L0:3 deviceFile:mpx.vmhba0:C0:T0:L0:3 ATS on device /dev/disks/mpx.vmhba0:C0:T0:L0:3: not supported . Checking if remote hosts are using this device as a valid file system. This may take a few seconds... Creating vmfs6 file system on "mpx.vmhba0:C0:T0:L0:3" with blockSize 1048576, unmapGranularity 1048576, unmapPriority default and volume label "USB". Successfully created new volume: 5c841dbe-1287c696-e5f0-000c29a64a24 # https://192.168.10.189/ui/#/host/storage/devices # reload devices